Skip to main content

ascending

Type

keyword

Summary

Used with the sort command to specify that sorting is in normal order (from less to greater).

Syntax

ascending

Description

Use the ascending keyword to improve the clarity of your code. For example, if a handler contains several sort commands and some are in descending order, you can use the ascending keyword explicitly to point up the fact that there are both ascending and descending sorts.

Since ascending is the default sort order, you never actually need to use the ascending keyword; if you leave it out, the sort is performed in ascending order anyway.

Examples

sort this stack ascending by field "Order Number"

command: sort, sort container

glossary: keyword, handler, command, sort

keyword: point

Compatibility and Support

Introduced

LiveCode 1.0

OS

mac

windows

linux

ios

android

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?